package net.csdn.business.common.domain.request.artical;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticalInfoListDTO {

    private String type;

    // 文章标题
    private String title;

    private String beginTime;

    private String endTime;

    private String city;

    private String province;
    private String country;

    private String place;

    private String year;

    @NotNull(message = "页码不能为空")
    @Min(value = 1)
    private Integer pageNum;

    @NotNull(message = "单页条数不能为空")
    @Min(value = 1)
    @Max(value = 100)
    private Integer pageSize;
}
